
// src/router/index.ts文件内容
// createWebHistory 没有#
// createMemoryHistory 没有#  不显示后面
// createWebHashHistory 有个#
import { createRouter, Router, createWebHashHistory } from 'vue-router';

const routers = [
    {
        name: 'index',
        path: '/',
        component: () => import('@/views/index.vue')
    },
    {
        name: 'about',
        path: '/about',
        component: () => import('@/views/about.vue')
    },
    {
        name: 'message',
        path: '/message',
        component: () => import('@/views/message.vue')
    },
    {
        name: 'notes',
        path: '/notes',
        component: () => import('@/views/notes.vue')
    },
    {
        name: 'project',
        path: '/project',
        component: () => import('@/views/project.vue')
    },
    // 用户登录页
    {
        name: 'login',
        path: '/login',
        component: () => import('@/views/user/login.vue')
    },




];

const router: Router = createRouter({
    history: createWebHashHistory(),
    routes: routers
});

export default router;